package com.liuhouse.constants;

/**
 * 字面值(代码中的固定值处理) , 把字面值在这里都定义成常量
 */
public class SystemCanstants {
    /**
     * 文章是草稿
     */
    public static final int ARTICLE_STATUS_DRAFT = 1;
    /**
     * 文章是正常发布状态
     */
    public static final int ARTICLE_STATUS_NORMAL = 0;
    /**
     * 文章列表当前查询的页数
     */
    public static final int ARTICLE_STATUS_CURRENT = 1;
    /**
     * 文章列表每页显示的数据条数
     */
    public static final int ARTICLE_STATUS_SIZE = 10;

    //分类表的分类状态是正常状态
    public static final String STATUS_NORMAL = "0";

    //分类表的分类状态是非正常状态
    public static final String STATUS_DRAFT = "1";

    //友链状态为审核通过
    public static final String LINK_STATUS_NORMAL = "0";

    //评论区的某条评论是根评论
    public static final Long COMMENT_ROOT = -1L;

    //文章的评论类型
    public static final String ARTICLE_COMMENT = "0";

    //友情链接的评论
    public static final String LINK_COMMENT = "1";

    //权限类型,菜单
    public static final String TYPE_MENU = "C";

    //权限类型,按钮
    public static final String TYPE_BUTTON = "F";

    /**
     * 分类是正常状态
     */
    public static final String NORMAL = "0";

    /**
     * 判断为管理员用户
     */
    public static final String IS_ADMIN = "1";

}
